package guda.sqladmin.web.form;

import guda.sqladmin.dao.domain.ProjectDO;


public class ProjectEditForm extends ProjectForm{

    private Long id;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public ProjectDO toDO(){
        ProjectDO projectDO  =super.toDO();
        projectDO.setId(this.id);
        return projectDO;
    }

    public void initForm(ProjectDO projectDO){
        if(projectDO == null){
        return ;
    }
    this.setProjectDesc(projectDO.getProjectDesc());
    this.setProjectName(projectDO.getProjectName());
}

}
